package skkj;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public enum Singleton4 {
    INSTANCE;
    private ExecutorService executorService;
    private Singleton4() {
        executorService = Executors.newFixedThreadPool(10);
    }
    public ExecutorService getExecutorService() {
        return executorService;
    }

    public static void main(String[] args) {
        ExecutorService executorService = Singleton4.INSTANCE.getExecutorService();
        System.out.println(executorService);
    }
}
